package threadcoreknowledge.createthread.threadobjectclasscommommethods;

//演示打印main,Thread-0,Thread-1
public class CurrentThread implements Runnable {

    public static void main(String[] args) {
        new CurrentThread().run();

        new Thread(new CurrentThread()).start();
        new Thread(new CurrentThread()).start();
    }



    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName());
    }
}
